package v1

import (
	"goGameWebServer/internal/model/entity"

	"github.com/gogf/gf/v2/util/gmeta"
)

type ServerQueryReq struct {
	gmeta.Meta `path:"/server/query" method:"get" tags:"查询服务器列表"`
}

type ServerQueryRes struct {
	gmeta.Meta `mime:"application/json" example:"{code:0, message:'', data:{servers:[{id:1, name:'name', ip:'ip', port:80, status:0}, {...}], default:{id:1, name:'name', ip:'ip', port:80, status:0}}}"`
	Servers    []*entity.ServerModelData `json:"servers"`
	Default    *entity.ServerModelData   `json:"default"`
}

type ServerVersionReq struct {
	gmeta.Meta `path:"/server/version" method:"get" tags:"查询服务器版本"`
}

type ServerVersionRes struct {
	gmeta.Meta `mime:"application/json" example:"{code:0, message:'', data:'version'}"`
}
